﻿using BPMN.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPMN.Domid.IReposict
{
    public interface IReposictBase<T> where T : class
    {
        Task<int> Add(T entity);
        Task<int> AddRolu(List<T> entity);
        Task<int> Update(T entity);
        Task<int> RoluUpd(List<T> entiy);
        Task<int> Delete(int id);  
        Task<int> ResDel(List<T> id);
        Task<T> Get(int id);
        Task<IQueryable<T>> GetAll();
        Task<dynamic> GetListByPage(int pageIndex = 1, int pageSize = 2);
        Task<int> SaveChange();
        void BeginTran();
        void CommitTran();
        void RollbakTran();

    }
}
